import http from '@/api/http';

//封装用户类型的接口方法
export class UserApi {

    // 登录
    static login(params: any) {
        return http.post('/user/login', params, {responseType: 'json'});
    }

    // 退出
    static logout(params: any) {
        return http.post('/user/logout', params, {responseType: 'json'});
    }

    // 注册
    static regist(params: any) {
        return http.post('/user/regist', params, {responseType: 'json'})
    }

    // 修改
    static modify(params: any) {
        return http.post('/user/modify', params, {responseType: 'json'})
    }

    // 查询
    static get(params: any) {
        return http.post('/user/modify', params, {responseType: 'json'})
    }
}